from django.contrib import admin
from .models import Book, Author
# Register your models here.


class AuthorAdmin(admin.ModelAdmin):
    list_display = ['id', 'aname']


class BookAdmin(admin.ModelAdmin):
    list_display = ['id', 'bname']


admin.site.register(Author, AuthorAdmin)
admin.site.register(Book, BookAdmin)